import { network } from '@/utils';

import { business } from '../../../../../config/Apis';

export async function queryUserList(params: any) {
  return network.get(business.userTag_list, { params });
}

export async function addUser(params: any) {
  return network.post(business.userTag_add, { data: params });
}

export async function updateUser(params: any) {
  return network.post(business.userTag_update, { data: params });
}

export async function enableUser(params: any) {
  return network.post(`${business.userTag_enable}?id=${params.id}`);
}

export async function disableUser(params: any) {
  return network.post(`${business.userTag_disable}?id=${params.id}`);
}
